package com.sky.converter;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

public class ShoppingCartConverter {

    public static ShoppingCart shoppingCartDTOConvertShoppingCart(ShoppingCartDTO shoppingCartDTO) {
        ShoppingCart result = new ShoppingCart();
        result.setDishId(shoppingCartDTO.getDishId());
        result.setSetmealId(shoppingCartDTO.getSetmealId());
        result.setDishFlavor(shoppingCartDTO.getDishFlavor());
        return result;
    }
}
